package edu.mit.compilers.assembly.x64.codes;

import edu.mit.compilers.assembly.x64.basic.X64Operand;

public class X64SpecialOpCode extends X64Code {
    public enum Type {
        IDIV,
    }

    private final Type type;
    private final X64Operand operand;

    public X64SpecialOpCode(X64Operand operand, Type type) {
        this.type = type;
        this.operand = operand;
    }

    @Override
    protected String getStringFroShow(String prefix, boolean debug) {
        assert type == Type.IDIV;
        return prefix + "idivq" + TAB + operand.getAddress() + '\n';
    }
}
